package chap4;//*************************************************************************
//	Counter.java		Author:GK
//
//	表示一个检录计数器，用于统计进入房间打人数。
//*************************************************************************

public class Countpeple
{
    private final chap4.pp pp = new pp(this);
    private int a;

    public Countpeple()
    {
        setA(0);
    }
    public int click()
    {
        setA(getA() + 1);
        return getA();
    }
    public int getCount()
    {
        return getA();
    }
    public int reset()
    {
        setA(0);
        return getA();
    }
    public String toString()
    {
        return pp.toString();
    }

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }
}
